package com.ctw.mapmycity.auth;

import java.util.HashMap;
import java.util.Map;

public enum LoginType {
	STANDARD("MMC"), 
	FB("FB");

	private String type;
	
	private static Map<String, LoginType> types = new HashMap<String, LoginType>();
	
	static { 
		types.put(STANDARD.getType(), STANDARD);
		types.put(FB.getType(), FB);
	}

	
	private LoginType(String type) {
		this.type = type;
	}

	public String getType() {
		return type;
	}

	public static LoginType getTypeEnum (String type){
		return types.get(type);
	}
}
